package cn.inno.service;

import cn.inno.dao.DeptMapper;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService extends BaseService {

    @Autowired
    private DeptMapper deptMapper;

    public JSONObject list() {

        List lists = this.deptMapper.selectByExample(null);

        JSONObject jsonObject = new JSONObject();

        jsonObject.put(KEY_DATA, lists);

        return this.executeRerutn(jsonObject);
    }

}
